<%@ include file="/common/jspHead.jsp"%><%--
--%><%@ page contentType="text/html;charset=UTF-8"%><%--
--%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><s:text name="admin_title"/></title>
<%@ include file="/common/admin_meta_head.jsp"%>
<%@ include file="/common/cmm_meta_head.jsp"%>
<script type="text/javascript">
<!--
	
	$(function(){
		
		//创建验证框
		$('#groupName').validatebox({    
			required: true,
			missingMessage: '<s:text name="groupName"/><s:text name="msg_required"/>'
		});
	});

	function doSubmit(){
		if ($("#frmObj").form('validate')){
			//防止重复提交
			$("input[type='button']").each(function(i){
				this.disabled = true;
			});
			//直接提交
			$('#frmObj').submit(); 
		}
	}
//-->
</script>
</head>

 <body>
  <form method="post" id="frmObj" action="save.do">
	<table>
	<c:if test='${fn:length(message)>0}'>
	<tr>
		<td class="tdInputmsg"></td>
		<td><font color="red">${message}</font></td>
	</tr>
	</c:if>
	<tr>
		<td class="tdInputmsg"><s:text name="groupId"/>:</td>
		<td>${addPage?'':'fm.groupId'}</td>
	</tr>
	<tr>
		<td class="tdInputmsg"><s:text name="groupName"/>:</td>
		<td><input type="text" name="fm.groupName" id="groupName" value="${fm.groupName}"></td>
	</tr>
	<tr>
		<td></td>
		<td>
		<s:hidden name="groupId"/>
		<input type="button" value='<s:text name="btn_submit"/>' onclick="doSubmit()">&nbsp;&nbsp;
		<input type="button" value='<s:text name="btn_reset"/>' onclick="doReset('frmObj')">&nbsp;&nbsp;
		<input type="button" value='<s:text name="btn_close"/>' onclick="window.parent.closeWin();">
		</td>
	</tr>
	</table>
  </form>
 </body>
</html>
